import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { ResearchRiskRartingComponent } from './researchRiskRating.component';
import { ChartsModule } from '../../../shared/directives/charts.module';
import { CompaniesListComponent } from './companyList/companyList.component';
import { TableModule } from '../../../shared/components/table/table.module';
import { LandingPageHeaderModule } from '../../../shared/components/landing-page-header/landing-page-header.module';
import { ModalModule } from '../../../shared/components/modal/modal.module';
import { ClusterService } from '../riskCluster/cluster.service';

const routes: Routes = [
    {
        path: '',
        component: ResearchRiskRartingComponent
    }
];

/**
 * Overall risk rating module.
 * Has all changes applied from Git up until 12 of March 2018 (commit 35656e585fff011c3be0735c96b9c4e406bca80a [35656e585])
 *
 * Author: Sorin Spiru
 * Date: 13.01.2018
 */
@NgModule({
    imports:[
        CommonModule,
        ChartsModule,
        TableModule,
        ModalModule,
        LandingPageHeaderModule,        
        RouterModule.forChild(routes)
    ],
    declarations: [
        CompaniesListComponent,
        ResearchRiskRartingComponent
    ],
    exports:[
        RouterModule
    ],
    providers: [
        ClusterService
    ]
})
export class ResearchRiskRatingModule { }
